<?php

namespace LowCode\Traits\Props;

use LowCode\Support\JsExp;

trait HasChildrenField
{
    /**
     * children 的字段名
     * @param string|JsExp $childrenField
     * @return $this
     */
    public function childrenField(string|JsExp $childrenField = 'children'): static
    {
        return $this->prop("children-field", $childrenField);
    }

}
